
import * as THREE from 'three';
import ControllerState from '../ControllerState';

export default async function sceneAdd(s: ControllerState, object3D?: THREE.Object3D) {
    if (!object3D) return;
    s.scene?.add(object3D);
    s.elementMap.set(object3D.uuid, { object3D, version: 0 });
    s.elementMap = new Map(s.elementMap);
}

